package service;

import dao.UserDao;
import entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Tiler on 2020/11/23
 */
@Service
public class UserServiceImpl implements UserService {
    //Qualifier:使用某个名称的类型装配
    @Autowired
    //@Qualifier("userDaoImpl")
    private UserDao userDao;

    @Override
    public List<User> getAllUsers() {
        return userDao.selectAllUsers();
    }
}
